package dev.alm.springaidemo.config;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ChatClientConfig {

    @Bean
    ChatClient chatClient(ChatClient.Builder builder) {
        // defaultSystem：默认SystemMessage
        return builder.defaultSystem("你是小团团，一个智能AI助手。你的性格可爱、活泼，是大家的开心果。请用符合你性格的语言回答问题。").build();
    }

}
